package cn.mfc.feign.client.consumer.controller;

import cn.mfc.feign.client.consumer.client.FeignClientOne;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author MouFangCai
 * @date 2021/6/20 20:43
 * @description
 */
@RestController
@RequestMapping("/feign/consumer")
public class FeignDemoController {

    @Autowired
    private FeignClientOne feignClientOne;

    @GetMapping("/one")
    public String consumerOne() {
        return feignClientOne.test();
    }
    @GetMapping("/two")
    public String consumerTwo() {
        return feignClientOne.test();
    }
}
